﻿using System.Windows;
using GermaneShanidze.Applications.Jokeri.Modules;
using Microsoft.Practices.Prism.Modularity;
using Microsoft.Practices.Prism.UnityExtensions;

namespace GermaneShanidze.Applications.Jokeri
{
    public class Bootstrapper : UnityBootstrapper
    {
        // Implementation
        protected override DependencyObject CreateShell()
        {
            Shell shell = this.Container.TryResolve<Shell>();
            Application.Current.RootVisual = shell;
            return shell;
        }

        protected override IModuleCatalog CreateModuleCatalog()
        {
            ModuleCatalog catalog = new ModuleCatalog();
            //catalog.AddModule(typeof(LobbyModule));
            catalog.AddModule(typeof(MainModule));
            return catalog;
        }
    }
}
